﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ninject;
using Ninject.Modules;
using PetaPoco;
using Meraz.Core.Parsers;
using Meraz.Core.Helpers;
using Meraz.Core.Managers;

namespace Meraz.Core.Config
{
    public class FacebookBoardParserModule : NinjectModule
    {
        public override void Load()
        {
            Bind<IFacebookBoardParseManager>().To<FacebookBoardParseManager>();
            Bind<IFacebookBoardParser>().To<FacebookBoardParser>();
            Bind<MyWebClient>().To<MyWebClient>().WithPropertyValue("UserAgent", "Mozilla/5.0 (Windows; Windows NT 5.1; rv:1.9.2.4) Gecko/20100611 Firefox/3.6.4");
            Bind<Database>().To<Database>().WithConstructorArgument("connectionStringName", "mysql");
        }
    }
}
